﻿@using Beeldbankmvc.Code           
@{
    Layout = null;
}

@helper MakeButton(string linkText, string actionName,
    string controllerName, string iconName, string classes)
{

    System.Web.Mvc.UrlHelper urlHelper =
        new System.Web.Mvc.UrlHelper(Request.RequestContext);
        <a href='@urlHelper.Action(linkText,actionName,controllerName)'
           class="btn @classes">Primary link</a>
}

<h1>
    Beeldarchief beheer
</h1>
<div>
    @{
        if (Roles.IsUserInRole("Beheerder") || Roles.IsUserInRole("Eindredacteur") || Roles.IsUserInRole("Administrator"))
        {  
           <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("FieldSearch", "Search", new { statusId = 23715, OnlyMyItems = true })">
                    <img alt="Mijn media" title="Mijn media" src="@AppHelper.getContent("~/Content/images/icon_search_32px.gif")" /><br />
                    Mijn media</a>
            </div>
        }
    }
    @{
        if (Roles.IsUserInRole("Beheerder") || Roles.IsUserInRole("Eindredacteur"))
        {
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Create", "MediaObject", new { mediaTypeId = 19 })">
                    <img alt="Nieuwe media" title="Nieuwe media" src="@AppHelper.getContent("~/Content/images/icon_wizard_32px.gif")" /><br />
                    Nieuwe media</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "Reaction", new { sort = "mediaObject" })">
                    <img alt="Media reacties" title="Media reacties" src="@AppHelper.getContent("~/Content/images/icon_language_32px.gif")" /><br />
                    Media reacties</a>
            </div>
        }
    }
    @{
        if (Roles.IsUserInRole("Administrator") || Roles.IsUserInRole("Eindredacteur"))
        {
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "Report")">
                    <img alt="Statistieken" title="Statistieken" src="@AppHelper.getContent("~/Content/images/icon_analytics_32px.gif")" /><br />
                    Statistieken</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("ViewCounter", "Report")">
                    <img alt="Downloads" title="Downloads" src="@AppHelper.getContent("~/Content/images/icon_solutions_32px.gif")" /><br />
                    Downloads</a>
            </div>
        }
    }
    @{
        if (Roles.IsUserInRole("Administrator") || Roles.IsUserInRole("MetadataBeheerder"))
        {       
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "ProjectFacet")">
                    <img alt="Projecten" title="Projecten" src="@AppHelper.getContent("~/Content/images/icon_extensions_32px.gif")" /><br />
                    Projecten</a>
            </div>

            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "Collection")">
                    <img alt="Thema's" title="Thema's" src="@AppHelper.getContent("~/Content/images/icon_profile_32px.gif")" /><br />
                    Thema's</a>
            </div>
        }
    }
    @{
        if (Roles.IsUserInRole("Administrator"))
        {
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("FiveStarMedia", "MediaObject")">
                    <img alt="5 Sterren" title="5 Sterren" src="@AppHelper.getContent("~/Content/images/icon_star_32px.png")" /><br />
                    5 Sterren</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "Keyword")">
                    <img alt="Trefwoorden" title="Trefwoorden" src="@AppHelper.getContent("~/Content/images/icon_hostsettings_32px.gif")" /><br />
                    Trefwoorden</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "Order")">
                    <img alt="Bestellingen" title="Bestellingen" src="@AppHelper.getContent("~/Content/images/icon_marketplace_32px.gif")" /><br />
                    Bestellingen</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "Account")">
                    <img alt="Gebruikers" title="Gebruikers" src="@AppHelper.getContent("~/Content/images/icon_users_32px.gif")" /><br />
                    Gebruikersbeheer</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("ReactionsPage", "Report")">
                    <img alt="Helpdesk" title="Helpdesk" src="@AppHelper.getContent("~/Content/images/icon_hostusers_32px.gif")" /><br />
                    Helpdesk</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "Reaction", new { sort = "datum" })">
                    <img alt="Meldingen" title="Service calls" src="@AppHelper.getContent("~/Content/images/icon_source_32px.gif")" /><br />
                    Meldingen</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "PublishRights")">
                    <img alt="Publicatierechten" title="Publicatierechten" src="@AppHelper.getContent("~/Content/images/icon_scheduler_32px.gif")" /><br />
                    Publicatie rechten</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "PriceInfo")">
                    <img alt="Prijsinformatie" title="Prijsinformatie" src="@AppHelper.getContent("~/Content/images/icon_Vendors_32px.gif")" /><br />
                    Prijsinformatie</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "MediaType")">
                    <img alt="MediaTypes" title="MediaTypes" src="@AppHelper.getContent("~/Content/images/icon_dashboard_32px.gif")" /><br />
                    MediaTypes</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "PageText")">
                    <img alt="Pagina's" title="Pagina's" src="@AppHelper.getContent("~/Content/images/icon_tabs_32px.gif")" /><br />
                    Pagina's</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "City")">
                    <img alt="Plaatsen" title="Plaatsen" src="@AppHelper.getContent("~/Content/images/icon_sitesettings_32px.gif")" /><br />
                    Plaatsen</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("ViewAnalogAlbums", "Report")">
                    <img alt="Mapnummers" title="Mapnummers" src="@AppHelper.getContent("~/Content/images/icon_lists_32px.gif")" /><br />
                    Mapnummers</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("VideoOverview", "Report")">
                    <img alt="Trefwoorden" title="Trefwoorden" src="@AppHelper.getContent("~/Content/images/icon_whatsnew_32px.gif")" /><br />
                    Video Export</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@AppHelper.getContent("~/elmah.axd")">
                    <img alt="Foutmeldingen" title="Foutmeldingen" src="@AppHelper.getContent("~/Content/images/icon_viewstats_32px.gif")" /><br />
                    Foutmeldingen</a>
            </div>
            <div style="float: left; text-align: center; width: 100px;">
                <a href="@Url.Action("Index", "Maintenance")">
                    <img alt="Systeembeheer" title="Systeembeheer" src="@AppHelper.getContent("~/Content/images/icon_host_32px.gif")" /><br />
                    Systeembeheer</a>
            </div>
        }
    }

    <div style="text-align: center; width: 100px">&nbsp;</div>
</div>